def out_func(func):
    def in_func(*args, **kwargs):
        print('aaa', args)
        print('aaa')
        data = func(*args, **kwargs)
        print('bbb')
        print('bbb', kwargs)
        return data

    return in_func


@out_func
def fn_demo(*args, **kwargs):
    print('hello world')
    data = [args, kwargs]
    return data


result = fn_demo(666, name="python")
print(result)
